package com.chenglu.android.common.base;


import com.chenglu.android.R;
import com.gyf.immersionbar.ImmersionBar;



/**
 * @author lyj
 * @Created by Copyright © 2023 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：布局需要伸入状态栏下面的Activity继承该类；
 */
public abstract class BaseFullScreenActivity<P extends BasePresenter> extends BaseMvpActivity<P> {

    @Override
    protected boolean isFullScreenLayout() {
        return true;
    }

    @Override
    protected int getLayoutId() {
        //该方法仅仅是为了实现父类的抽象方法，无任何意义，忽略即可
        return R.layout.layout_nothing;
    }

    @Override
    protected void initView() {
        //布局可伸入状态栏
        ImmersionBar.with(this)
                .statusBarColor(R.color.transparent)
                .statusBarDarkFont(true)
                .fullScreen(true)
                .init();
    }
}
